package com.springboot.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author wubc683
 * @desc
 * @date 2021-07-28 9:19
 */
@Data
public class SystemLog {
    private Long id;
    private String username;
    @ApiModelProperty("操作详情")
    private String operator;
    @ApiModelProperty("浏览器")
    private String browser;
    private String ip;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("登录时间")
    private Date loginTime;
}
